#include "my_time.h"
#include <omp.h>

int main() {
  MyTimeI;
  MyTimeA;

  omp_set_nested(1); // 打开并行域嵌套功能
  int tid = -1;
#pragma omp parallel private(tid) num_threads(2)
  {
    tid = omp_get_thread_num();
    printf("Hello world from OpenMP thread %d\n", tid);
#pragma omp parallel private(tid) num_threads(3)
    {
      tid = omp_get_thread_num();
      printf("Hello math from OpenMP thread %d\n", tid);
    }
  }

  MyTimeB;
  return 0;
}